Skip to content

misc scripts: add support for arm64#12639

Merged
MickLesk merged 24 commits into
mainfrom
arm64-build-support
Jun 11, 2026
Merged

misc scripts: add support for arm64#12639
MickLesk merged 24 commits into
mainfrom
arm64-build-support

Conversation

@asylumexp

@asylumexp asylumexp commented Mar 7, 2026

Copy link
Copy Markdown
Member

✍️ Description

Adds support for creating arm64 Ubuntu, Debian, and alpine containers via scripts.

✅ Prerequisites (X in brackets)

  • Self-review completed – Code follows project standards.
  • Tested thoroughly – Changes work as expected.
  • No security risks – No hardcoded secrets, unnecessary privilege escalations, or permission issues.

🛠️ Type of Change (X in brackets)

  • 🐞 Bug fix – Resolves an issue without breaking functionality.
  • New feature – Adds new, non-breaking functionality.
  • 💥 Breaking change – Alters existing functionality in a way that may require updates.
  • 🆕 New script – A fully functional and tested script or script set.
  • 🌍 Website update – Changes to website-related JSON files or metadata.
  • 🔧 Refactoring / Code Cleanup – Improves readability or maintainability without changing functionality.
  • 📝 Documentation update – Changes to README, AppName.md, CONTRIBUTING.md, or other docs.

Comment thread misc/install.func Outdated
Comment thread misc/tools.func
@asylumexp asylumexp marked this pull request as ready for review March 7, 2026 10:12
@asylumexp asylumexp requested a review from a team as a code owner March 7, 2026 10:12

@michelroegl-brunner michelroegl-brunner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a solid solution to implement the ARM scripts in the repo. We then dont even need any special calls for the scripts when a user wants to run the arm version. I really like that. As i see for the install script, you just basicly put the arm needed stuff in front of the AMD64 install script?

Comment thread misc/build.func Outdated
Comment thread misc/build.func Outdated
Comment thread misc/install.func Outdated

@CrazyWolf13 CrazyWolf13 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this tested in VED repo?

Should we consider adding a short whitail popup, that arm support is in beta or active development and there may be stuff that is not yet fully tested/working?

Comment thread misc/build.func Outdated
Comment thread misc/build.func Outdated
Comment thread misc/build.func Outdated
Comment thread misc/build.func Outdated
Comment thread misc/build.func Outdated
Comment thread misc/build.func
Comment thread misc/build.func Outdated
Comment thread misc/build.func Outdated
Comment thread misc/build.func Outdated
Comment thread misc/install.func Outdated
Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com>
asylumexp and others added 6 commits March 11, 2026 09:56
Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com>
Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com>
Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com>
Legacy support removed since no cts use them anymore.
Add clearer architecture error messages and gate arm64 usage, plus implement architecture-aware behavior across the toolkit. Changes include: update exit-code messages to reference amd64/arm64, refuse arm64 unless explicitly enabled, show architecture in summaries, and use arch-specific package lists when installing in containers. Make downloads for FFmpeg and yq choose the correct amd64/arm64 binaries, tighten template download error handling and formatting, and clean up minor whitespace/comment issues. These changes aim to make arm64 handling explicit and downloads/installations more robust for non-amd64 systems.
@github-actions github-actions Bot added the api Changes to the API label Mar 11, 2026
@asylumexp asylumexp marked this pull request as draft March 12, 2026 03:11
@tremor021

Copy link
Copy Markdown
Member

I don't see any outstanding issues here. If @MickLesk agrees, we can merge this

tremor021
tremor021 previously approved these changes May 12, 2026
CrazyWolf13
CrazyWolf13 previously approved these changes May 12, 2026

@CrazyWolf13 CrazyWolf13 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any issues with it, but @MickLesk is the most familiar with core

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the helper scripts’ architecture handling to (intendedly) support arm64 hosts/containers, including arm64-aware template fetching for Debian/Ubuntu/Alpine and arm64 binary selection for a few bundled tools.

Changes:

  • Update GitHub/Codeberg release asset selection heuristics to better distinguish amd64 vs arm64 .deb assets.
  • Add arm64-specific LXC template download flow (GitHub releases + linuxcontainers Jenkins rootfs) and wire it into container creation.
  • Add arm64-aware download URLs for selected tools (FFmpeg/yq) and adjust architecture validation messaging.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
misc/tools.func Refines release asset heuristics and adds arch-based FFmpeg/yq download selection.
misc/error_handler.func Updates exit-code 106 description text to reflect amd64/arm64 support.
misc/core.func Expands arch validation to include arm64, adds whiptail install helper + arm64 notice dialog.
misc/build.func Adds ARM64 template defaults and implements custom arm64 template download/validation in LXC creation.
misc/api.func Updates exit-code 106 description text to reflect amd64/arm64 support.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread misc/tools.func
Comment thread misc/tools.func
Comment thread misc/tools.func
Comment thread misc/tools.func
Comment thread misc/tools.func Outdated
Comment thread misc/tools.func Outdated
Comment thread misc/core.func
Comment thread misc/core.func
Comment thread misc/build.func
Comment thread misc/build.func Outdated
@MickLesk

Copy link
Copy Markdown
Member

We should prepare the Website (issue Template and Request form for arm64) the issue Template and some little Things. Maybe i have in the next week an arm64 Test Setup

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
asylumexp and others added 2 commits May 13, 2026 00:46
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@michelroegl-brunner

Copy link
Copy Markdown
Member

@MickLesk what do you want changed on the website for that to get merged? i can tackle some things if you like.

@MickLesk

MickLesk commented Jun 1, 2026

Copy link
Copy Markdown
Member

Sure, you can. My brain is full this week 😄 and its fckn monday

@michelroegl-brunner

Copy link
Copy Markdown
Member

@MickLesk review/approve when you got time pls

@MickLesk MickLesk merged commit 6851a02 into main Jun 11, 2026
1 check passed
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jun 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants